LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_UNSIGNED.ALL;

ENTITY led_show IS
	PORT
	(count:	IN STD_LOGIC_VECTOR(3 DOWNTO 0);
	seg7:OUT STD_LOGIC_VECTOR(6 DOWNTO 0)
	--state:IN INTEGER RANGE 0 TO 4;
	);
END led_show;

ARCHITECTURE behave OF led_show IS
BEGIN 
	PROCESS(count)
	BEGIN 
	--IF(state/=0) THEN
		CASE count IS
			when"0000"=>seg7<="0111111";
			when"0001"=>seg7<="0000110";
			when"0010"=>seg7<="1011011";
			when"0011"=>seg7<="1001111";
			when"0100"=>seg7<="1100110";
			when"0101"=>seg7<="1101101";
			when"0110"=>seg7<="1111101";
			when"0111"=>seg7<="0000111";
			when"1000"=>seg7<="1111111";
			when"1001"=>seg7<="1101111";
			when others=>NULL;
		end case;
	--ELSE 
		--seg7<="1111111";
	--END IF;
	end process;
end;